﻿<script>
    $(document).ready(function () {
        $('#dataTable').dataTable({
            "bProcessing": true,
            "sAjaxSource": '/Content/json/comment.txt',
            "aoColumns": [
                 { "mDataProp": "Customer", "sTitle": "Customer" },
                 { "mDataProp": "Product", "sTitle": "Product" },
                 { "mDataProp": "Stars", "sTitle": "Stars" },
                 { "mDataProp": "Comment", "sTitle": "Comment", "sWidth": "250px" },
                 { "mDataProp": "Time", "sTitle": "Time", "sWidth": "120px" },
                 { "mDataProp": "Status", "sTitle": "Status" },
                 { "mDataProp": null, "sTitle": "Action", "sWidth": "100px",
                     "fnRender": function (o, val) {
                         return "<a href='#'>Hide</a> | <a href='#'>Show</a>";
                     }
                 }
            ]
        });
    });
</script>
<div class="grid_14">
    <a href="/">Home</a> &gt; <a href="/Customer">Customers</a> &gt; Comments
    <hr />
</div>
<div class="grid_14">
    <div class="box">
        <h2>Comments</h2>
        <fieldset id="orderFilter">
            <legend>Filter</legend>
            <p><label>Status:</label><select><option>All Status...</option></select></p>
            <p><label>Stars:</label><select><option>All Stars...</option></select></p>
        </fieldset>
        <table id="dataTable"></table>
        <div class="clear"></div>
    </div>
</div>